Determines whether the current value is not empty.

Namespace: Keystone.Polaris
Assembly: Keystone (in Keystone.dll)

public static bool IsNotEmpty<TBaseValue>( 
this TBaseValue valueOf
Func<TBaseValue, bool> usingComparison = null 
)
This language is not supported or no code example is available.

Type Parameters

TBaseValue

The type of the current value.

Parameters

valueOf

Type: TBaseValue

The current value.

usingComparison

Type: Func<TBaseValue, bool>

The optional comparison function to test the current value for non-emptiness. If none is given and the current value is a string, a comparison with an non-empty string is used. On the other hand if none is given and the current value is an enumeration, a test to verify that the enumeration has items is used.

Return Value

true if the given value is not empty; otherwise, false.
Exception type Condition

ArgumentException

If the current value type is not within the recognized types.

Windows, Windows Server, OS X, macOS, iOS, tvOS, Android, Linux, AWS, Azure

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 4.6

Others

Xamarin, Mono